import {User} from '../../user/model/user';
import {Catalog} from './catalog';
import {Comment} from './comment';

export class Blog {
  public id: number;
  public title: string;
  public summary: string;
  public content: string;
  public htmlContent: string;
  public createTime: string;
  public avatar: string;
  public readSize: number;
  public commentSize: number;
  public voteSize: number;
  public user: User;
  public catalog: Catalog;
  public tags: string;
  public comments:Comment[]
  constructor() {
    this.catalog = new Catalog();
    this.user = new User();
    this.comments=null;
  }
}
